<template>
  <div class="punish">
    <div class="title-wrap">
      <RouteHeadLine />
      <div class="search-wrap">
        <el-form ref="formRef" :model="params">
          <el-row :gutter="50">
            <el-col :span="6">
              <el-form-item label="处罚部门：">
                <el-select v-model="params.a" clearable placeholder="请选择">
                  <el-option
                    v-for="item in options"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  />
                </el-select>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="开始日期：">
                <el-date-picker
                  v-model="params.q"
                  type="date"
                  placeholder="请选择"
                  clearable
                  format="YYYY-MM-DD"
                  value-format="YYYY-MM-DD"
                />
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="结束日期：" label-width="160px">
                <el-date-picker
                  v-model="params.q"
                  type="date"
                  placeholder="请选择"
                  clearable
                  format="YYYY-MM-DD"
                  value-format="YYYY-MM-DD"
                />
              </el-form-item>
            </el-col>

            <el-col :span="6">
              <el-form-item label-width="30">
                <el-button
                  type="primary"
                  :icon="ArrowLeft"
                  @click="handleSearch"
                  ><el-icon style="color: #fff; margin-right: 5px"
                    ><Search /></el-icon
                  >查询</el-button
                >
                <!-- <el-button
                  type="danger"
                  style="margin-left: 24px"
                  :icon="ArrowLeft"
                  @click="handleDelete"
                  ><el-icon style="color: #fff; margin-right: 5px"
                    ><Delete /></el-icon
                  >删除</el-button
                > -->
              </el-form-item>
            </el-col>
          </el-row>
        </el-form>
      </div>
    </div>
    <div class="data-wrap">
      <el-table
        :data="tableData"
        border
        class="table-height"
        style="width: 100%"
      >
        <!-- <el-table-column align="center" type="selection" width="60" /> -->

        <el-table-column prop="date" align="center" label="处罚日期" />
        <el-table-column prop="name" align="center" label="处罚金额" />
        <el-table-column prop="name" align="center" label="处罚原因" />
        <el-table-column prop="name" align="center" label="处罚措施" />
        <el-table-column prop="name" align="center" label="处罚文号" />
        <el-table-column prop="name" align="center" label="处罚部门" />
        <el-table-column prop="name" align="center" label="执行人" />

        
       
      </el-table>
      <div style="padding-right: 60px; margin-top: 25px">
        <Pagination
          :currentPage="params.currentPage"
          :total="total"
          :page-size="params.pageSize"
        />
      </div>
    </div>
    <Dialog
      :diaWidth="40"
      :diaTop="15"
      v-model:showDialog="showDialog"
      headerName="审核"
      @save="diaSave"
    >
      <template #content>
        <div class="content">
          <el-form :model="form" label-width="165px" label-position="right">
            <el-form-item label="审核状态：">
              <el-select v-model="form.region" clearable placeholder="请选择">
                <el-option
                  class="dia-select-item"
                  v-for="item in options"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                />
              </el-select>
            </el-form-item>
            <el-form-item label="备注：">
              <el-input
                clearable
                v-model="form.f"
                :rows="6"
                type="textarea"
                placeholder="请输入"
              />
            </el-form-item>
          </el-form>
        </div>
      </template>
    </Dialog>
  </div>
</template>
<script setup lang="ts">
import Pagination from "@/components/Pagination.vue";
import RouteHeadLine from "@/components/RouteHeadLine.vue";
import Dialog from "@/components/Dialog.vue";
let params = reactive({});
let handleSearch = () => {};
let total = ref(11);
let showDialog = ref(false);
let form = reactive({});
let options = ref([
  { label: "佛挡杀", value: 2 },
  { label: "佛挡杀", value: 2 },
]);
let handleAudit = () => {
  showDialog.value = true;
};
let diaBack = () => {
  showDialog.value = false;
};
let diaSave = () => {};
let tableData = ref([
  { date: "浮点数" },
  { date: "浮点数" },
  { date: "浮点数" },
  { date: "浮点数" },
  { date: "浮点数" },
  { date: "浮点数" },
  { date: "浮点数" },
  { date: "浮点数" },
  { date: "浮点数" },
  { date: "浮点数" },
]);
let handleDelete = () => {};
</script>
<style lang="scss" scoped>
.punish {
  width: 100%;
  height: 100%;
  padding-left: 8px;
  overflow: hidden;
  .title-wrap {
    height: 140px;
    background: #ffffff;
    padding-top: 20px;

    /* width: 100%; */
    .search-wrap {
      margin-top: 30px;
      padding-left: 35px;
      padding-right: 43px;
    }
  }
  .content {
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .data-wrap {
    margin-top: 10px;
    width: 100%;
    height: calc(100vh - 80px - 10px - 126px);
    background: #fff;
    padding: 10px 8px 0 8px;
    .table-height {
      height: calc(100vh - 36.5vh);
      overflow-y: scroll;

      button {
        width: 115px;
        height: 39px;
        background: #e5efff;
        border-radius: 5px;
        font-family: Source Han Sans CN;
        font-weight: 400;
        font-size: 20px;
        color: #0874fa;
      }
    }
  }
}
</style>
